﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BoardTrigger : MonoBehaviour
{
    private void OnTriggerEnter(Collider other)
    {
        if (other.CompareTag("Death"))
        {
            return;
        }
        //脚踩到了地板，更新跳跃状态.
        SendMessageUpwards("UpdateJumpState");
        FindObjectOfType<PlayerCharacter>().SavePos(other.transform.position);
    }

}
